<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			/* function Person(){
				
			}
			Person.prototype.lastName = "李";
			var per1 = new Person();
			per1.lastName = "刘";
			console.log(per1.lastName); */
			function Person(name,age,sex){
				this.name = name;
				this.age = age;
				this.sex = sex;
			}
			Person.prototype.money = 10086;
			var per1 = new Person("李明","18","男");
			//console.log(per1.age);
			console.log(per1.money);
			var per2 = new Person();
			console.log(per2.age);
		</script>
	</head>
	<body>
		
	</body>
</html>
